package IC;

public class SemanticError extends Exception {

	/**
	 * 
	 */
	private static final long serialVersionUID = -3038764459443793326L;
	private String errorMessage;
	private int line;
	
	public SemanticError(int line, String errorMessaage){
		this.errorMessage = errorMessaage;
		this.line = line;
	}
	
	@Override
	public String toString(){
		return "semantic error at line " + line + ": " + errorMessage;
	}
	

}
